/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

jQuery(document).ready(function () {
    var MyLogCategoryViewModel = new LogCategoryViewModel();
    ko.applyBindings(MyLogCategoryViewModel, document.getElementById('addLogCategoryNode'));
	ko.applyBindings(MyLogCategoryViewModel, document.getElementById('modifyLogCategoryNode'));
	ko.applyBindings(MyLogCategoryViewModel, document.getElementById('listLogCategoryNode'));
    jQuery("#newLogCategoryForm").validate();
    jQuery('input:submit').click(function () {
        if (jQuery("#newLogCategoryForm").valid())
        {
            MyLogCategoryViewModel.AddLogCategory();

        }
        return false;
    });

    

    
});